import React, { Component } from "react";
import { Provider } from "react-redux";
import { HashRouter, Switch, Route } from "react-router-dom";

import store from "../../redux/store";
import Login from "../login"
import Register from "../register";


class App extends Component {
    render() {
        return (<Provider store={store}>
            <HashRouter>
                <Switch>
                    <Route path='/login' component={Login} />
                    <Route path='/register' component={Register} />
                </Switch>
            </HashRouter>
        </Provider> )
    }
}
export default App